package com.qk.ezbuy.dao;

import com.qk.ezbuy.pojo.Product;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectById(Integer id);

    /**
     * 事务删除
     */
    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    /**
     * 查看所有商品
     * @return
     */
    List<Product> selectAll();


    List<Product> selectByParentId(Map<String,Object> map);

}